﻿namespace SS.Common.ImageResizer
{
    public class ResizeOptions
    {
        private readonly string _name;
        private readonly int _width;
        private readonly int _height;
        private readonly bool _crop;

        public string Name
        {
            get { return this._name; }
        }

        public int Width
        {
            get { return this._width; }
        }

        public int Height
        {
            get { return this._height; }
        }

        public bool Crop
        {
            get { return this._crop; }
        }

        public ResizeOptions(int width)
        {
            this._width = width;
            this._name = string.Empty;
            this._crop = false;
            this._height = 0;
        }

        public ResizeOptions(string name, int width)
        {
            this._width = width;
            this._name = name;
            this._crop = false;
            this._height = 0;
        }

        public ResizeOptions(int width, int height, bool crop)
        {
            this._width = width;
            this._name = string.Empty;
            this._crop = crop;
            this._height = height;
        }

        public ResizeOptions(string name, int width, int height, bool crop)
        {
            this._width = width;
            this._name = name;
            this._crop = crop;
            this._height = height;
        }
    }
}
